package com.jweb.framework.ws.sdo;

import java.util.Map;
import java.util.Stack;

import commonj.sdo11.DataObject;
import commonj.sdo11.Property;

/**
 * 修改人： Thomas
 * 修改内容：新增 
 * 类说明：SOAP报文转换接口
 */
public interface SdoConverter {
	
	public static final Mapping FLATTING = new SdoConverterB();
	
	public static final Mapping CASCADE = new SdoConverterA();
	
	public Map toData(DataObject dataObject) ;
	
	public DataObject toSdo(Map map , DataObject dataObject);
	
	public static interface Mapping{
		public DataObject createObject(Map map , DataObject dataObject , Property property);
		
		public void setDataMap(String str , Map map1 , Map map2 , Stack stack);
		
		public void setDataValue(String str , Map map , Object obj , Stack stack);
		
		public Map getSdoMap(String str , Map map , Stack stack);
		
		public Object getSdoValue(String str , Map map , Stack stack) ;
		
	}
	
}
